package net.bwie.jtp.service;

import net.bwie.jtp.bean.TrafficChannelAvgBean;
import net.bwie.jtp.bean.TrafficChannelPvBean;
import net.bwie.jtp.bean.TrafficChannelUvBean;
import net.bwie.jtp.mapper.TrafficChannelStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 简介说明:
 *
 * @author: LiLi
 * @date: 2025/05/21 15:39:02
 * @version: 1.0
 */

@Service
public class TrafficChannelStateServiceImpl implements TrafficChannelStateService{

    @Autowired
    TrafficChannelStatsMapper trafficChannelStatsMapper;

    //  1 页面浏览请求拦截方法
    @Override
    public List<TrafficChannelPvBean> getPvCount(String date) {
        return trafficChannelStatsMapper.selectPvCount(date);
    }
    //  2 唯一访客数请求拦截方法
    @Override
    public List<TrafficChannelUvBean> getUvCount(String date) {
        return trafficChannelStatsMapper.selectUvCount(date);
    }
//   3  平均会话时长（毫秒/会话）
    @Override
    public List<TrafficChannelAvgBean> getAvgCount(String date) {
        return trafficChannelStatsMapper.selectAvgCount(date);
    }


}
